<div class="tableData">
<h2>Delete Ledger Entry</h2>

<?php

	echo $this->Form->create();
		
	echo $this->Form->input('entry_date', array('disabled' => 'disabled'));
	echo $this->Form->input('details', array('disabled' => 'disabled'));
	echo $this->Form->input('amount', array(
		'type' => 'text', 'disabled' => 'disabled'));
	
	$type_options = array('D' => 'Debit', 'C' => 'Credit');
			
	echo $this->Form->input('type', array('options' => $type_options, 'default' => 'C', 'disabled' => 'disabled'));
	
	// superuser or organization admin
	$user = $this->Session->read('User');
	if ( $user['User']['organization_id'] < 2 ) {
		echo $this->Form->input('division_id', array('disabled' => 'disabled'));
		echo $this->Form->input('department_id', array('disabled' => 'disabled'));
	}
	
	echo $this->Form->input('category_id', array('disabled' => 'disabled'));
	
	echo $this->Form->input('detail', array('label' => 'Reason', 'required' => 'required'));
	
	echo $this->Form->end( 'delete' );

?>
</div>